package com.yao.provider.service;

import domain.User;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import service.UserService;

/**
 * @author yao
 */
// @Service(version = "2.0"
//         , group = "A"
//         , protocol = {"dubboProtocol", "rmiProtocol"})
// @Component
public class UserServiceA2Impl implements UserService {
    @Override
    public String sayHello(User user) {
        return "hello" + user.getName() + ",from version:2,group:A,provider:2";
    }
}
